package com.itheima_01;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class HashMapTest01 {
    public static void main(String[] args) {
        HashMap<String,String>  hm = new HashMap<>();
        hm.put("it001","张三");
        hm.put("it002","王五");
        hm.put("it003","李四");

        Set<Map.Entry<String, String>> set = hm.entrySet();
        for (Map.Entry<String, String> str : set) {
            String key = str.getKey();
            String value = str.getValue();
            System.out.println(key+"----"+value);
        }
    }
}
